package com.zqwh.xtool.domain;

import com.zqwh.xtool.enums.StockStatus;

public class StockVO implements Comparable<StockVO> {
    private String stockId;
    private String stockNo;
    private Long devId;

    private Long toolId;
    private String name;
    private String spec;
    private String description;
    private Boolean hasRFID;
    private Boolean hasLent = false;

    private String epc;

    private Boolean hasFound = false;

    private String borrower;
    private StockStatus status;

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public String getStockNo() {
        return stockNo;
    }

    public void setStockNo(String stockNo) {
        this.stockNo = stockNo;
    }

    public Long getDevId() {
        return devId;
    }

    public void setDevId(Long devId) {
        this.devId = devId;
    }

    public Long getToolId() {
        return toolId;
    }

    public void setToolId(Long toolId) {
        this.toolId = toolId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getHasRFID() {
        return hasRFID;
    }

    public void setHasRFID(Boolean hasRFID) {
        this.hasRFID = hasRFID;
    }

    public Boolean getHasLent() {
        return hasLent;
    }

    public void setHasLent(Boolean hasLent) {
        this.hasLent = hasLent;
    }

    public String getEpc() {
        return epc;
    }

    public void setEpc(String epc) {
        this.epc = epc;
    }

    public Boolean getHasFound() {
        return hasFound;
    }

    public void setHasFound(Boolean hasFound) {
        this.hasFound = hasFound;
    }

    public String getBorrower() {
        return borrower;
    }

    public void setBorrower(String borrower) {
        this.borrower = borrower;
    }

    public StockStatus getStatus() {
        return status;
    }

    public void setStatus(StockStatus status) {
        this.status = status;
    }

    @Override
    public int compareTo(StockVO o) {
        return this.getHasFound().compareTo(o.getHasFound());
    }

    @Override
    public String toString() {
        return "StockVO{" +
                "stockId='" + stockId + '\'' +
                ", devId=" + devId +
                ", toolId=" + toolId +
                ", name='" + name + '\'' +
                ", spec='" + spec + '\'' +
                ", description='" + description + '\'' +
                ", hasRFID=" + hasRFID +
                ", hasLent=" + hasLent +
                ", epc='" + epc + '\'' +
                ", hasFound=" + hasFound +
                '}';
    }
}
